package com.hutao.manage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hutao.manage.pojo.UploadScan;
import com.hutao.manage.query.MedBindQuery;
public interface UploadScanMapper {


    int deleteByPrimaryKey(Integer id);

    int insert(UploadScan record);

    int insertSelective(UploadScan record);


    UploadScan selectByPrimaryKey(Integer id);
    
    UploadScan getUploadScanByFolderName(String folderName);

    //查询未绑定信息集合
    //List<Map<String,Object>> getUnBindList(Params params);
    
    //查询绑定信息集合
    //List<Map<String,Object>> getBindList(Params params);
    
  //查询绑定信息集合
    List<Map<String,Object>> getBindList(MedBindQuery params);
    
    //查询未绑定信息数量
    int getBindCount(MedBindQuery params);
    
    
    //查询未绑定信息数量
   // int getUnBindCount(Params params);
    
    //根据上传扫描id获取相应的文件hash
    List<String> getFileHashByUploadScanId(@Param("uploadScanId") Integer uploadScanId);

    int updateByPrimaryKeySelective(UploadScan record);

    int updateByPrimaryKey(UploadScan record);
    
    List<Map<String,Object>> getUploadScanByMedBindQuery(MedBindQuery params);
    
    int getUploadScanCountByMedBindQuery(MedBindQuery params);
}